package com.zhk.entry.ioc;

public class TPerson {

    private ICar car;
    public TPerson(ICar car){
        this.car = car;
    }

    /**
     * 驾车
     */
    public void drive()
    {
        car.you();
        car.fang();
        car.sha();
    }
}
